package com.hkemmm.cola;

public abstract class ColaEmployee {
    private String name;        //员工姓名
    private int month;          //生日月份

    public ColaEmployee(String name, int month) {
        this.name = name;
        this.month = month;
    }

    //计算工资方法，工资月与生日月相同则工资+100
    public abstract double getSalary(int month);

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }
}
